﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="EmailSendedList.aspx.cs" Inherits="SystemManager_EmailSendedList" Title="无标题页" %>

<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 800px">
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                待发送列表:<asp:DropDownList ID="ddlState" runat="server" Height="16px" 
                    Width="143px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <cc1:ExtensionGridView ID="gvMailList" runat="server" 
                    AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                    RecordCount="-1" AllowPaging="True" EmptyDataText="没有邮件发送记录!" 
                    onpageindexchanging="gvMailList_PageIndexChanging" PageSize="15" 
                    Width="600px">
                    <Columns>
                        <asp:TemplateField HeaderText="操作">
                            <HeaderTemplate>
                                <asp:CheckBox ID="cbAll" runat="server" 
                                    oncheckedchanged="cbAll_CheckedChanged" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSingle" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="用户名">
                            <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("ToUserName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发送?">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("IsSended") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="E-Mail">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("ToUserEmail") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发送标题">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("EmailTemplateName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发送邮箱">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("FromEmail") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="创建时间">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("CreateDate") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发送人">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("SendAdminName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发送时间">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("SendDate") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </cc1:ExtensionGridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:LinkButton ID="lblSendMail" runat="server" onclick="lblSendMail_Click">发送邮件</asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>

